// 评估模板板块常量和配置项
export const PAGE_STATUS = {
  WELCOME: 1,
  QUESTION: 2,
};

export const DROPDOWN_STATUS = {
  EDIT: 'edit',
  COPY: 'copy',
  DELETE: 'delete',
  RELEASE: 'release',
};

export const TEMPLATE_STATUS = {
  DELETED: -1,
  SAVED: 1,
  RELEASED: 2,
};

export const RISK_STATUS = {
  NO: 1,
  LOW: 2,
  MIDDLE: 3,
  HIGH: 4,
  SERIOUS: 5,
  TO_BE_CONFIRMED: 6,
};

export const LOGIC_TYPE_STATUS = {
  EQUALS: 1,
  DOES_NOT_EQUALS: 2,
  CONTAINS: 3,
  DOES_NOT_CONTAINS: 4,
  ANY_OF: 5,
  ALL_OF: 6,
  EMPTY: 7,
  NOT_EMPTY: 8,
};

export const riskCheckboxOptions = [
  { label: '无风险', value: RISK_STATUS.NO },
  { label: '低风险', value: RISK_STATUS.LOW },
  { label: '中风险', value: RISK_STATUS.MIDDLE },
  { label: '高风险', value: RISK_STATUS.HIGH },
  { label: '严重风险', value: RISK_STATUS.SERIOUS },
  { label: '不确定', value: RISK_STATUS.TO_BE_CONFIRMED },
];

export const riskOptions = {
  [RISK_STATUS.NO]: {
    label: '无风险',
    backgroundColor: '#666',
  },
  [RISK_STATUS.LOW]: {
    label: '低风险',
    backgroundColor: '#48c79c',
  },
  [RISK_STATUS.MIDDLE]: {
    label: '中风险',
    backgroundColor: '#f2995f',
  },
  [RISK_STATUS.HIGH]: {
    label: '高风险',
    backgroundColor: '#e34d59',
  },
  [RISK_STATUS.SERIOUS]: {
    label: '严重风险',
    backgroundColor: '#c9353f',
  },
  [RISK_STATUS.TO_BE_CONFIRMED]: {
    label: '不确定',
    backgroundColor: '#0052d9',
  },
};

export const filterRiskOptions = {
  [RISK_STATUS.LOW]: {
    label: '低风险',
    backgroundColor: '#48c79c',
  },
  [RISK_STATUS.MIDDLE]: {
    label: '中风险',
    backgroundColor: '#f2995f',
  },
  [RISK_STATUS.HIGH]: {
    label: '高风险',
    backgroundColor: '#e34d59',
  },
  [RISK_STATUS.SERIOUS]: {
    label: '严重风险',
    backgroundColor: '#c9353f',
  },
};

export const openLevelOptions = [
  {
    value: 0,
    label: '仅供企业内部使用',
  },
  {
    value: 1,
    label: '开放共享（英斯盾平台上企业均可使用）',
  },
];

export const dropdownOptions = [
  {
    content: '编辑模板',
    value: DROPDOWN_STATUS.EDIT,
  },
  {
    content: '复制模板',
    value: DROPDOWN_STATUS.COPY,
  },
  {
    content: '删除模板',
    value: DROPDOWN_STATUS.DELETE,
  },
];

export const otherDropdownOptions = [
  {
    content: '复制模板',
    value: DROPDOWN_STATUS.COPY,
  },
];

// 风险类型列表
export const labelOptions = [
  { value: '行为缺失', label: '行为缺失' },
  { value: '制度缺失', label: '制度缺失' },
  { value: '行为不足', label: '行为不足' },
  { value: '制度不足', label: '制度不足' },
];

// 风险标签列表
export const typeOptions = [
  { value: '法律合规风险', label: '法律合规风险' },
  { value: '标准合规风险', label: '标准合规风险' },
  { value: '最佳实践不一致', label: '最佳实践不一致' },
];
